<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Ipopt: src/contrib/CGPenalty/IpPiecewisePenalty.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js"],
  jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 40px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Ipopt Documentation
   &#160;<!--span id="projectnumber">3.14.17</span-->
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('IpPiecewisePenalty_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">IpPiecewisePenalty.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="IpPiecewisePenalty_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">// Copyright (C) 2007 International Business Machines and others.</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">// All Rights Reserved.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">// This code is published under the Eclipse Public License.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment">//</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment">// Authors:  Lifeng Chen/Zaiwen Wen      Columbia Univ</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#ifndef __IPPIECEWISEPENALTY_HPP__</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#define __IPPIECEWISEPENALTY_HPP__</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;<a class="code" href="IpJournalist_8hpp.html">IpJournalist.hpp</a>&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;<a class="code" href="IpDebug_8hpp.html">IpDebug.hpp</a>&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;<a class="code" href="IpOptionsList_8hpp.html">IpOptionsList.hpp</a>&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &quot;<a class="code" href="IpIpoptCalculatedQuantities_8hpp.html">IpIpoptCalculatedQuantities.hpp</a>&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &quot;<a class="code" href="IpBacktrackingLSAcceptor_8hpp.html">IpBacktrackingLSAcceptor.hpp</a>&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;<a class="code" href="IpPDSystemSolver_8hpp.html">IpPDSystemSolver.hpp</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceIpopt.html">Ipopt</a></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span>{</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="foldopen" id="foldopen00023" data-start="{" data-end="};">
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="structIpopt_1_1PiecewisePenEntry.html">   23</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structIpopt_1_1PiecewisePenEntry.html">PiecewisePenEntry</a></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>{</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="structIpopt_1_1PiecewisePenEntry.html#a424d447c04a3e51f2ce47b55ba22bbb0">   25</a></span>   <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> <a class="code hl_variable" href="structIpopt_1_1PiecewisePenEntry.html#a424d447c04a3e51f2ce47b55ba22bbb0">pen_r</a>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structIpopt_1_1PiecewisePenEntry.html#af6de57fc6de1309173c835a60dcb1756">   26</a></span>   <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> <a class="code hl_variable" href="structIpopt_1_1PiecewisePenEntry.html#af6de57fc6de1309173c835a60dcb1756">barrier_obj</a>;</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="structIpopt_1_1PiecewisePenEntry.html#a46b78857039e80f477b434980dd78d75">   27</a></span>   <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> <a class="code hl_variable" href="structIpopt_1_1PiecewisePenEntry.html#a46b78857039e80f477b434980dd78d75">infeasi</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="namespaceIpopt.html#a820752b2ed10b6ea383c37e434c012c6">   28</a></span>} PiecewisePenEntry;</div>
</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="foldopen" id="foldopen00036" data-start="{" data-end="};">
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html">   36</a></span><span class="keyword">class </span><a class="code hl_class" href="classIpopt_1_1PiecewisePenalty.html">PiecewisePenalty</a></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>{</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#ab0c93c414c04105027886c50a8ae1631">   42</a></span>   <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#ab0c93c414c04105027886c50a8ae1631">PiecewisePenalty</a>(</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>      <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dim</a>);</div>
<div class="foldopen" id="foldopen00045" data-start="{" data-end="}">
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#ab0886c2f2f807275607ac1a55e382886">   45</a></span>   <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#ab0886c2f2f807275607ac1a55e382886">~PiecewisePenalty</a>()</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>   {</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>      <span class="comment">// ToDo figure out if that here is necessary</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>      <span class="comment">//    Clear();</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>   }</div>
</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>   <span class="comment">// Initialize Piecewise Penalty list</span></div>
<div class="foldopen" id="foldopen00054" data-start="{" data-end="}">
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#af4a71aa87817ad17ff75fe23ee9cf9e8">   54</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#af4a71aa87817ad17ff75fe23ee9cf9e8">IsPiecewisePenaltyListEmpty</a>()</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>   {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>      <span class="keywordflow">return</span> <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#ad81264f70c4d65cbd43cc2fdfffa16f8">PiecewisePenalty_list_</a>.empty();</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>   }</div>
</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="foldopen" id="foldopen00059" data-start="{" data-end="}">
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#af3a71f0c86ae92d21630ffe95da79967">   59</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#af3a71f0c86ae92d21630ffe95da79967">InitPiecewisePenaltyList</a>(</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> pen_r,</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> barrier_obj,</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> infeasi)</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>   {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>      <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a7bfe972128ef404cac05b08815fe700f">AddEntry</a>(pen_r, barrier_obj, infeasi);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>   }</div>
</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a95f711bc5fd14354fc6be0776812586d">   72</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a95f711bc5fd14354fc6be0776812586d">Acceptable</a>(</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">Fzconst</a>,</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">Fzlin</a></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>   );</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a72eae43f77dd7be3e612a44ca645c55b">   78</a></span>   <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a72eae43f77dd7be3e612a44ca645c55b">BiggestBarr</a>();</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a715fee332c35d1eb99f8e2f1bdbfbfad">   81</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a715fee332c35d1eb99f8e2f1bdbfbfad">UpdateEntry</a>(</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> barrier_obj,</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> infeasi );</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="foldopen" id="foldopen00086" data-start="{" data-end="}">
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a7bfe972128ef404cac05b08815fe700f">   86</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a7bfe972128ef404cac05b08815fe700f">AddEntry</a>(</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> pen_r,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> barrier_obj,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> infeasi</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>   )</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>   {</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>      <a class="code hl_struct" href="structIpopt_1_1PiecewisePenEntry.html">PiecewisePenEntry</a> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">TmpEntry</a>;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>      <span class="keywordflow">if</span>( <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#af4a71aa87817ad17ff75fe23ee9cf9e8">IsPiecewisePenaltyListEmpty</a>() )</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>      {</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>         <a class="code hl_class" href="classIpopt_1_1DependentResult.html">TmpEntry</a>.pen_r = 0.0;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>      }</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>      <span class="keywordflow">else</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>      {</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>         <a class="code hl_class" href="classIpopt_1_1DependentResult.html">TmpEntry</a>.pen_r = pen_r;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>      }</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>      <a class="code hl_class" href="classIpopt_1_1DependentResult.html">TmpEntry</a>.barrier_obj = barrier_obj;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>      <a class="code hl_class" href="classIpopt_1_1DependentResult.html">TmpEntry</a>.infeasi = infeasi;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>      <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#ad81264f70c4d65cbd43cc2fdfffa16f8">PiecewisePenalty_list_</a>.push_back(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">TmpEntry</a>);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>   }</div>
</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span> </div>
<div class="foldopen" id="foldopen00107" data-start="{" data-end="}">
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a6cf7901c5173b6bbade4d1f59eccc967">  107</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a6cf7901c5173b6bbade4d1f59eccc967">ResetList</a>(</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> pen_r,</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> barrier_obj,</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>      <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> infeasi</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>   )</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>   {</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>      <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#ad81264f70c4d65cbd43cc2fdfffa16f8">PiecewisePenalty_list_</a>.clear();</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>      <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a7bfe972128ef404cac05b08815fe700f">AddEntry</a>(pen_r, barrier_obj, infeasi);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>   }</div>
</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="foldopen" id="foldopen00120" data-start="{" data-end="}">
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a863e352222e35a374ed8f38521bcf327">  120</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a863e352222e35a374ed8f38521bcf327">Clear</a>()</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>   {</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>      <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#ad81264f70c4d65cbd43cc2fdfffa16f8">PiecewisePenalty_list_</a>.clear();</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>   }</div>
</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#ab9b06ac92572b7bf55813319001084d2">  126</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#ab9b06ac92572b7bf55813319001084d2">Print</a>(</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1Journalist.html">Journalist</a>&amp; <a class="code hl_class" href="classIpopt_1_1DependentResult.html">jnlst</a></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>   );</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a2e1769f1873dae141a0a4b1035f3cc28">  142</a></span>   <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a2e1769f1873dae141a0a4b1035f3cc28">PiecewisePenalty</a>();</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#acff51f967613ce0954fe04074529c4b3">  144</a></span>   <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#acff51f967613ce0954fe04074529c4b3">PiecewisePenalty</a>(</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1PiecewisePenalty.html">PiecewisePenalty</a>&amp;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>   );</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a23343059c60768990f5c23bc49c2c2f4">  149</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1PiecewisePenalty.html#a23343059c60768990f5c23bc49c2c2f4">operator=</a>(</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1PiecewisePenalty.html">PiecewisePenalty</a>&amp;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>   );</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a3080f4a50e50284b87dc7052857cf2c2">  155</a></span>   <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#a3080f4a50e50284b87dc7052857cf2c2">dim_</a>;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#aa4df9bf49b6b6f7c1055be013f09ef1e">  158</a></span>   <a class="code hl_typedef" href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Number</a> <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#aa4df9bf49b6b6f7c1055be013f09ef1e">min_piece_penalty_</a>;</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#a9eafd8483050621b54f0e34e04418fcb">  161</a></span>   <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#a9eafd8483050621b54f0e34e04418fcb">max_piece_number_</a>;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="classIpopt_1_1PiecewisePenalty.html#ad81264f70c4d65cbd43cc2fdfffa16f8">  164</a></span>   std::vector&lt;PiecewisePenEntry&gt; <a class="code hl_variable" href="classIpopt_1_1PiecewisePenalty.html#ad81264f70c4d65cbd43cc2fdfffa16f8">PiecewisePenalty_list_</a>;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>};</div>
</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>} <span class="comment">// namespace Ipopt</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aIpBacktrackingLSAcceptor_8hpp_html"><div class="ttname"><a href="IpBacktrackingLSAcceptor_8hpp.html">IpBacktrackingLSAcceptor.hpp</a></div></div>
<div class="ttc" id="aIpDebug_8hpp_html"><div class="ttname"><a href="IpDebug_8hpp.html">IpDebug.hpp</a></div></div>
<div class="ttc" id="aIpIpoptCalculatedQuantities_8hpp_html"><div class="ttname"><a href="IpIpoptCalculatedQuantities_8hpp.html">IpIpoptCalculatedQuantities.hpp</a></div></div>
<div class="ttc" id="aIpJournalist_8hpp_html"><div class="ttname"><a href="IpJournalist_8hpp.html">IpJournalist.hpp</a></div></div>
<div class="ttc" id="aIpOptionsList_8hpp_html"><div class="ttname"><a href="IpOptionsList_8hpp.html">IpOptionsList.hpp</a></div></div>
<div class="ttc" id="aIpPDSystemSolver_8hpp_html"><div class="ttname"><a href="IpPDSystemSolver_8hpp.html">IpPDSystemSolver.hpp</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html"><div class="ttname"><a href="classIpopt_1_1DependentResult.html">Ipopt::DependentResult</a></div><div class="ttdoc">Templated class which stores one entry for the CachedResult class.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00301">IpCachedResults.hpp:302</a></div></div>
<div class="ttc" id="aclassIpopt_1_1Journalist_html"><div class="ttname"><a href="classIpopt_1_1Journalist.html">Ipopt::Journalist</a></div><div class="ttdoc">Class responsible for all message output.</div><div class="ttdef"><b>Definition</b> <a href="IpJournalist_8hpp_source.html#l00116">IpJournalist.hpp:117</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html">Ipopt::PiecewisePenalty</a></div><div class="ttdoc">Class for the Piecewise Penalty.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00036">IpPiecewisePenalty.hpp:37</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a23343059c60768990f5c23bc49c2c2f4"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a23343059c60768990f5c23bc49c2c2f4">Ipopt::PiecewisePenalty::operator=</a></div><div class="ttdeci">void operator=(const PiecewisePenalty &amp;)</div><div class="ttdoc">Default Assignment Operator.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a2e1769f1873dae141a0a4b1035f3cc28"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a2e1769f1873dae141a0a4b1035f3cc28">Ipopt::PiecewisePenalty::PiecewisePenalty</a></div><div class="ttdeci">PiecewisePenalty()</div><div class="ttdoc">Default Constructor.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a3080f4a50e50284b87dc7052857cf2c2"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a3080f4a50e50284b87dc7052857cf2c2">Ipopt::PiecewisePenalty::dim_</a></div><div class="ttdeci">Index dim_</div><div class="ttdoc">Dimension of the Piecewise Penalty (number of coordinates per entry)</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00155">IpPiecewisePenalty.hpp:155</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a6cf7901c5173b6bbade4d1f59eccc967"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a6cf7901c5173b6bbade4d1f59eccc967">Ipopt::PiecewisePenalty::ResetList</a></div><div class="ttdeci">void ResetList(Number pen_r, Number barrier_obj, Number infeasi)</div><div class="ttdoc">Clear and reset the piecewise penalty list.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00107">IpPiecewisePenalty.hpp:107</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a715fee332c35d1eb99f8e2f1bdbfbfad"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a715fee332c35d1eb99f8e2f1bdbfbfad">Ipopt::PiecewisePenalty::UpdateEntry</a></div><div class="ttdeci">void UpdateEntry(Number barrier_obj, Number infeasi)</div><div class="ttdoc">Update Piecewise Penalty entry for given coordinates.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a72eae43f77dd7be3e612a44ca645c55b"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a72eae43f77dd7be3e612a44ca645c55b">Ipopt::PiecewisePenalty::BiggestBarr</a></div><div class="ttdeci">Number BiggestBarr()</div><div class="ttdoc">Get the value of the biggest barrier function so far.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a7bfe972128ef404cac05b08815fe700f"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a7bfe972128ef404cac05b08815fe700f">Ipopt::PiecewisePenalty::AddEntry</a></div><div class="ttdeci">void AddEntry(Number pen_r, Number barrier_obj, Number infeasi)</div><div class="ttdoc">Add a entry to the list.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00086">IpPiecewisePenalty.hpp:86</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a863e352222e35a374ed8f38521bcf327"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a863e352222e35a374ed8f38521bcf327">Ipopt::PiecewisePenalty::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdoc">Delete all Piecewise Penalty entries.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00120">IpPiecewisePenalty.hpp:120</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a95f711bc5fd14354fc6be0776812586d"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a95f711bc5fd14354fc6be0776812586d">Ipopt::PiecewisePenalty::Acceptable</a></div><div class="ttdeci">bool Acceptable(Number Fzconst, Number Fzlin)</div><div class="ttdoc">Check acceptability of given coordinates with respect to the Piecewise Penalty.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_a9eafd8483050621b54f0e34e04418fcb"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#a9eafd8483050621b54f0e34e04418fcb">Ipopt::PiecewisePenalty::max_piece_number_</a></div><div class="ttdeci">Index max_piece_number_</div><div class="ttdoc">The max number of the break points in the piecewise penalty list.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00161">IpPiecewisePenalty.hpp:161</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_aa4df9bf49b6b6f7c1055be013f09ef1e"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#aa4df9bf49b6b6f7c1055be013f09ef1e">Ipopt::PiecewisePenalty::min_piece_penalty_</a></div><div class="ttdeci">Number min_piece_penalty_</div><div class="ttdoc">The min penalty value for the piecewise penalty list.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00158">IpPiecewisePenalty.hpp:158</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_ab0886c2f2f807275607ac1a55e382886"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#ab0886c2f2f807275607ac1a55e382886">Ipopt::PiecewisePenalty::~PiecewisePenalty</a></div><div class="ttdeci">~PiecewisePenalty()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00045">IpPiecewisePenalty.hpp:45</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_ab0c93c414c04105027886c50a8ae1631"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#ab0c93c414c04105027886c50a8ae1631">Ipopt::PiecewisePenalty::PiecewisePenalty</a></div><div class="ttdeci">PiecewisePenalty(Index dim)</div><div class="ttdoc">Default Constructor.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_ab9b06ac92572b7bf55813319001084d2"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#ab9b06ac92572b7bf55813319001084d2">Ipopt::PiecewisePenalty::Print</a></div><div class="ttdeci">void Print(const Journalist &amp;jnlst)</div><div class="ttdoc">Print current Piecewise Penalty entries.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_acff51f967613ce0954fe04074529c4b3"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#acff51f967613ce0954fe04074529c4b3">Ipopt::PiecewisePenalty::PiecewisePenalty</a></div><div class="ttdeci">PiecewisePenalty(const PiecewisePenalty &amp;)</div><div class="ttdoc">Copy Constructor.</div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_ad81264f70c4d65cbd43cc2fdfffa16f8"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#ad81264f70c4d65cbd43cc2fdfffa16f8">Ipopt::PiecewisePenalty::PiecewisePenalty_list_</a></div><div class="ttdeci">std::vector&lt; PiecewisePenEntry &gt; PiecewisePenalty_list_</div><div class="ttdoc">vector storing the Piecewise Penalty entries</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00164">IpPiecewisePenalty.hpp:164</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_af3a71f0c86ae92d21630ffe95da79967"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#af3a71f0c86ae92d21630ffe95da79967">Ipopt::PiecewisePenalty::InitPiecewisePenaltyList</a></div><div class="ttdeci">void InitPiecewisePenaltyList(Number pen_r, Number barrier_obj, Number infeasi)</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00059">IpPiecewisePenalty.hpp:59</a></div></div>
<div class="ttc" id="aclassIpopt_1_1PiecewisePenalty_html_af4a71aa87817ad17ff75fe23ee9cf9e8"><div class="ttname"><a href="classIpopt_1_1PiecewisePenalty.html#af4a71aa87817ad17ff75fe23ee9cf9e8">Ipopt::PiecewisePenalty::IsPiecewisePenaltyListEmpty</a></div><div class="ttdeci">bool IsPiecewisePenaltyListEmpty()</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00054">IpPiecewisePenalty.hpp:54</a></div></div>
<div class="ttc" id="anamespaceIpopt_html"><div class="ttname"><a href="namespaceIpopt.html">Ipopt</a></div><div class="ttdoc">This file contains a base class for all exceptions and a set of macros to help with exceptions.</div><div class="ttdef"><b>Definition</b> <a href="IpInexactAlgBuilder_8hpp_source.html#l00013">IpInexactAlgBuilder.hpp:14</a></div></div>
<div class="ttc" id="anamespaceIpopt_html_a5a4a27f325033a0e5d85a4ebc4038b57"><div class="ttname"><a href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Ipopt::Index</a></div><div class="ttdeci">ipindex Index</div><div class="ttdoc">Type of all indices of vectors, matrices etc.</div><div class="ttdef"><b>Definition</b> <a href="IpTypes_8hpp_source.html#l00020">IpTypes.hpp:20</a></div></div>
<div class="ttc" id="anamespaceIpopt_html_ab75ce5f2ad60aa86e4dff723998e653f"><div class="ttname"><a href="namespaceIpopt.html#ab75ce5f2ad60aa86e4dff723998e653f">Ipopt::Number</a></div><div class="ttdeci">ipnumber Number</div><div class="ttdoc">Type of all numbers.</div><div class="ttdef"><b>Definition</b> <a href="IpTypes_8hpp_source.html#l00017">IpTypes.hpp:17</a></div></div>
<div class="ttc" id="astructIpopt_1_1PiecewisePenEntry_html"><div class="ttname"><a href="structIpopt_1_1PiecewisePenEntry.html">Ipopt::PiecewisePenEntry</a></div><div class="ttdoc">struct for one Piecewise Penalty entry.</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00023">IpPiecewisePenalty.hpp:24</a></div></div>
<div class="ttc" id="astructIpopt_1_1PiecewisePenEntry_html_a424d447c04a3e51f2ce47b55ba22bbb0"><div class="ttname"><a href="structIpopt_1_1PiecewisePenEntry.html#a424d447c04a3e51f2ce47b55ba22bbb0">Ipopt::PiecewisePenEntry::pen_r</a></div><div class="ttdeci">Number pen_r</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00025">IpPiecewisePenalty.hpp:25</a></div></div>
<div class="ttc" id="astructIpopt_1_1PiecewisePenEntry_html_a46b78857039e80f477b434980dd78d75"><div class="ttname"><a href="structIpopt_1_1PiecewisePenEntry.html#a46b78857039e80f477b434980dd78d75">Ipopt::PiecewisePenEntry::infeasi</a></div><div class="ttdeci">Number infeasi</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00027">IpPiecewisePenalty.hpp:27</a></div></div>
<div class="ttc" id="astructIpopt_1_1PiecewisePenEntry_html_af6de57fc6de1309173c835a60dcb1756"><div class="ttname"><a href="structIpopt_1_1PiecewisePenEntry.html#af6de57fc6de1309173c835a60dcb1756">Ipopt::PiecewisePenEntry::barrier_obj</a></div><div class="ttdeci">Number barrier_obj</div><div class="ttdef"><b>Definition</b> <a href="IpPiecewisePenalty_8hpp_source.html#l00026">IpPiecewisePenalty.hpp:26</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</body>
</html>
